﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/*
Copyright 2011 Mirosław M. Mączka

This file is part of MobiLang.

    MobiLang is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Foobar is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Foobar; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/
namespace MobiLang
{
    public class CCP
    {
        public static string ToText(int cp)
        {
            switch (cp)
            {
                case 874: return "Thai(874)";
                case 932: return "Japanese(932)";
                case 936: return "Chinese (simplified) (PRC, Singapore)(936)";
                case 949: return "Korean(949)";
                case 950: return "Chinese (traditional) (Taiwan, Hong Kong)(950)";
                case 1200: return "Unicode (BMP of ISO 10646, UTF-16LE)(1200)";
                case 1201: return "Unicode (BMP of ISO 10646, UTF-16BE)(1201)";
                case 1250: return "Latin (Central European languages)(1250)";
                case 1251: return "Cyrillic(1251)";
                case 1252: return "Latin (Western European languages)(1252)";
                case 1253: return "Greek(1253)";
                case 1254: return "Turkish(1254)";
                case 1255: return "Hebrew(1255)";
                case 1256: return "Arabic(1256)";
                case 1257: return "Latin (Baltic languages)()";
                case 1258: return "Vietnamese(1257)";
                case 65000: return "Unicode (BMP of ISO 10646, UTF-7)(65000)";
                case 65001: return "Unicode (BMP of ISO 10646, UTF-8)(65001)";
                    //
                case 10000: return "Macintosh Roman encoding(10000)";
                case 10007: return "Macintosh Cyrillic encoding(10007)";
                case 10029: return "Macintosh Central European encoding(10029)";
                case 20127: return "US-ASCII The classic US 7 bit character set with no char larger than 127(20127)";
                case 28591: return "ISO-8859-1 (followed by ISO-8859-2 to ISO-8859-15)(28591)";
            }
            return string.Format("Unknown:{0}", cp);
        }
    }
}
